/*
 * PhotonRTOS础光实时操作系统 -- AUTOSAR常数
 *
 * Copyright (C) 2022, 2023 国科础石(重庆)软件有限公司
 *
 * 作者: Lin Yang <s-yanglin@kernelsoft.com>
 *
 * License terms: GNU General Public License (GPL) version 3
 *
 */

#ifndef OS_AUTOSAR_UAPI_CONST_H
#define OS_AUTOSAR_UAPI_CONST_H

#define AUTOSAR_NR_COUNTER	CONFIG_AUTOSAR_COUNTER_COUNT
#define COUNTER_MAX_VALUE	CONFIG_COUNTER_MAX_VALUE
#define AUTOSAR_NR_WAITER	CONFIG_AUTOSAR_WAITER_COUNT
#define NO_COUNTER		AUTOSAR_NR_COUNTER

#define AUTOSAR_NR_SCHEDULE_TABLE	CONFIG_AUTOSAR_SCHEDULE_TABLE_COUNT
#define AUTOSAR_NR_EXPIRY_POINT		CONFIG_AUTOSAR_EXPIRY_POINT_COUNT
#define NO_SCHEDULE_TABLE		AUTOSAR_NR_SCHEDULE_TABLE
#define NO_NEXT_SCHEDULE_TABLE		AUTOSAR_NR_SCHEDULE_TABLE
#define AUTOSAR_NR_EXPIRY_POINT_TASK	CONFIG_AUTOSAR_EXPIRY_POINT_TASK_COUNT
#define AUTOSAR_NR_EXPIRY_POINT_EVENT	CONFIG_AUTOSAR_EXPIRY_POINT_EVENT_COUNT

#define MAX_RT_PRIO 128U

#endif /* OS_AUTOSAR_UAPI_CONST_H */
